//
//  BottomView.m
//  FastDoctor
//
//  Created by 程建良 on 16/7/6.
//  Copyright © 2016年 sc. All rights reserved.
//

#import "BottomView.h"
#import "StateView.h"
#import "ButtonView.h"
@interface BottomView()


@property (nonatomic,weak)StateView *sketchView;
@property (nonatomic,weak)ButtonView *buttonView;


@end
@implementation BottomView

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.sketchView.frame = CGRectMake(0, 0, self.frame.size.width, 40);
    self.buttonView.frame = CGRectMake(0,40 ,self.frame.size.width,(self.frame.size.height-40));
}

-(instancetype)init
{
    if (self = [super init])
    {
        [self setupSketchView];
        [self setupButtonView];
    }
    return self;
}

-(void)setupSketchView
{
    StateView *sketchView = [[StateView alloc]init];
    self.sketchView = sketchView;
    
    sketchView.backgroundColor = [UIColor whiteColor];
    [self addSubview:sketchView];
}
-(void)setupButtonView
{
    ButtonView *buttonView = [[ButtonView alloc]init];
    
    self.buttonView = buttonView;
    
    [self addSubview:buttonView];
}


@end
